package com.tianzy.sfl.web.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Eric.Zhang on 2016/12/19.
 */
@RestController
public class hello {
    @RequestMapping("/hello/index")
    String index() {
        return "Hello World!";
    }

    @RequestMapping("/hello/{myName}")
    String index2(@PathVariable String myName) {

        return "Hello "+myName+"!!!";
    }
}
